<template>
    <div class="DingDanTop">
        <div class="sousuo" @click="search">
            <img class="VipImg" src="../../../assets/img/waimai/Vipsousuo.webp">
        </div>
        <router-link to="/xiaoxi-wch">
            <img class="xiaoXi" src="src/assets/img/waimai/xiaoxi.webp">
        </router-link>
    </div>
    <div class="DingDanDaoHang">
        <DingDanSwiper/>
    </div>

</template>

<script>
    import DingDanSwiper from "./DingDanSwiper.vue";
    export default {
        name: "DingDanTop",
        components: {DingDanSwiper},
        methods: {
            search() {
                this.$router.push("/search-view")
            }
        }
    }
</script>

<style scoped>
    .DingDanTop {
        width: 100vw;
        height: 60px;
        text-align: center;
        background-color: #fad467;
        line-height: 55px;
        font-size: 25px;
        font-weight: 500;
        position: sticky;
        top: 0;
        overflow: hidden;
        font-family: 黑体;
    }

    .sousuo {
        width: 80vw;
        height: 36px;
        background-color: rgb(255, 255, 255);
        margin-left: 10px;
        margin-top: 10px;
        position: fixed;
        border-radius: 25px;
        border: 1px #ffce00 solid;
        z-index: 2
    }

    .VipImg {
        float: left;
        width: 20px;
        margin-left: 10px;
        margin-top: 8px;
    }

    .xiaoXi {
        float: right;
        margin-top: 15px;
        margin-right: 20px;
    }

    .DingDanDaoHang {
        width: 100vw;
        height: 60vh;
        margin-top: -10px;
    }
</style>